<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"
	import="com.heitaoking.blog.entity.User,com.heitaoking.blog.entity.Blog,java.util.ArrayList"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
<link rel="stylesheet" type="text/css"
	href="<%=request.getContextPath()%>/css/style1.css" />
</head>
<body>
	<div id="Layer1">
		<div id="Layer2">
			<div align="justify">
				<h1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;首页</h1>
			</div>
		</div>
		<div id="Layer3"></div>
		<div id="Layer4" align="right">
			<strong>主页</strong> | <strong><a
				href="<%=request.getContextPath()%>/jsp/yemianJSP/DH-bowen guanli.jsp">博文</a></strong>
			| <strong><a
				href="<%=request.getContextPath()%>/jsp/yemianJSP/DH-shoucang.jsp">收藏</a></strong>
		</div>
		<%
			User currentUser = (User) session.getAttribute("currentUser");
			ArrayList<Blog> blogList = (ArrayList<Blog>) request
					.getAttribute("blogList");
		%>

		<div id="Layer5">
			最新更新的博文

			<%
			if (blogList != null) {

				for (Blog blog : blogList) {
		%>
			<div id="Layer12"><%=blog.getBiaotiname()%>>
			</div>
			<div id="Layer13"><%=blog.getBiaotiname2()%>>
			</div>
			<%
				}
				}
			%>

		</div>
		<div id="Layer6">
			登录
			<div id="Layer16">
				<table width="245" height="120" border="0" cellspacing="1">
					<tr>
						<td colspan="2"><div align="center">用户名</div></td>

					</tr>
					<tr>
						<td colspan="2"><div align="center">欢迎来到黑桃K!</div></td>
					</tr>
					<tr>
						<td width="119"><a
							href="<%=request.getContextPath()%>/jsp/yemianJSP/DH-xiugai geren xinxi.jsp">修改个人信息</a></td>
						<td width="119"><a
							href="<%=request.getContextPath()%>/jsp/yemianJSP/DH-xiugai mima.jsp">修改个人密码</a></td>
					</tr>
				</table>
			</div>

		</div>
		<div id="Layer7">
			滚动图片
			<div id="Layer17"></div>
		</div>
		<div id="Layer15">双体实训</div>
		<div id="Layer20" align="right">
			<pre>欢迎光临：<strong>双体系</strong>   <a
					href="<%=request.getContextPath()%>/jsp/yemianJSP/DH-fabowen.jsp">写博文</a>   <a
					href="<%=request.getContextPath()%>/jsp/yemianJSP/DH-pinglun guanli.jsp">我的评论</a>  （几条未读）   <a
					href="<%=request.getContextPath()%>/jsp/yemianJSP/DH-bowen guanli.jsp">我的分类</a>   <a
					href="<%=request.getContextPath()%>/jsp/yemianJSP/DH-haoyou guanli.jsp">我的好友</a>   <a
					href="<%=request.getContextPath()%>/jsp/yemianJSP/DH-shouye.jsp">短消息（几条未读）</a>   <a
					href="<%=request.getContextPath()%>/jsp/yemianJSP/WD-shouye.jsp">退出</a>
</pre>
		</div>
	</div>

</body>
</html>